<?php
class User {
    var $user_id;
	var $club_id;
    var $login_date;
    var $name;
    var $email;
    var $can_upload;

    function User($username) {
        $this->login_date = date("d/m/Y H:i:s");
        $this->name = $username;
    }
}

class NewsItem {
	var $news_id;
	var $title;
	var $date;
	var $intro;
    var $introImage;
	var $message;
	var $author;
}

class ClubItem {
	var $club_id;
	var $clubname;
	var $correspondent;
	var $correspondent_email;
	var $correspondent_function;
	var $website;
	var $playdate_adults;
	var $playdate_youth;
	var $site;
	var $site_address;
	var $email_club;
	var $comment;
}

class ClubChange {
	var $user_id;
	var $changed_date;
}

class PlayerList {
	var $player_list_id;
	var $tournament_id;
	var $club_id;
	var $date_added;
	var $date_approved;
	var $date_modified;
}

class Player {
    var $player_id;
    var $club_id;
	var $player_key;
	var $player_name;
	var $gender;
	var $dob;
	var $elo;
	var $game_count;
	var $player_list_id;
	var $team_name;
	var $index_nr;
	var $error;
}

class Team {
    var $club_id;
    var $team_name;
    var $team_nr;
    var $department_nr;
}

class ZTClubInfo {
    var $club_id;
    var $clubname;
	var $site;
	var $address;
	var $city;
	var $phone;
	var $play_day;
	var $contact_name;
	var $contact_address;
	var $contact_city;
	var $contact_phone;
	var $contact_email;
}

class LinkItem {
	var $link_id;
	var $link_category;
	var $club_id;
	var $link_name;
	var $link_url;
	var $link_note;
}

class LinkCategoryItem {
	var $link_category_id;
	var $link_category;
}

class GroupItem {
	var $group_id;
	var $group_name;
}

class ZTCrossTableRecord {
  var $gameNr;
	var $roundNr;
	var $boardNr;
	var $homeTeam;
	var $homeTeamNr;
	var $homeTeamBP;
	var $homeTeamMP;
	var $homeTeamCount;
	var $homeErrorId;
	var $visitTeam;
	var $visitTeamNr;
	var $visitTeamBP;
	var $visitTeamMP;
	var $visitTeamCount;
	var $visitErrorId;
	var $result;
}

class ZTCrossTableResult {
  var $results;
	var $teamName;
	var $teamNr;
	var $total;
	var $BP;
	var $MP;
	var $gameCount;
}

class ZTSubscription {
  var $clubId;
  var $clubName;
  var $group;
  var $groupCount;
  var $wishes;
}

class CalendarPairing {
  var $round_nr;
  var $group_name;
  var $home_team;
  var $visit_team;
}

class PlayerStat {
    var $playerKey;
    var $playerName;
    var $playerElo;
    var $playerClub;
    var $groupId;
    var $groupName;
    var $played;
    var $won;
    var $drawn;
    var $lost;
    var $total;
    var $tpr;
    var $avg;
}

class Match {
    var $round;
    var $playerKey;
    var $opponentKey;
    var $opponentClub;
    var $opponentName;
    var $opponentRating;
    var $result;
    var $homeMatch;
}

class Subscription {
    var $name;
    var $club;
    var $elo;
    var $stamnr;
    var $date_added;
}

class UploadedTournament {
    var $upload_id;
    var $user_id;
    var $club;
    var $author;
    var $name;
    var $date;
    var $ref;
}

class Poll {
    var $poll_id;    
    var $title;
    var $desc;
    var $size;
    var $start;
    var $end;
    var $active;
    var $cht;
    var $chxt;
}

class PollComment {
    var $poll_id;    
    var $comment;
    var $choice_color;
}

class PollOption {
    var $option_id;
    var $poll_id;
    var $label;
    var $desc;
    var $color;
    var $count;
}

class TeamLead {
    var $user_id;
    var $club_id;
    var $club_name;
    var $name;
    var $email;
    var $username;
    var $password;
}

?>